package org.agile2soft.nexoma.tapestry.encoder;

import org.agile2soft.nexoma.controller.ServiceOptionController;
import org.agile2soft.nexoma.entity.ServiceOption;
import org.hibernate.SessionFactory;

import br.com.arsmachina.module.service.PrimaryKeyTypeService;
import br.com.arsmachina.tapestrycrud.hibernate.encoder.HibernateIntegerEncoder;

public class ServiceOptionEncoder extends HibernateIntegerEncoder<ServiceOption> {

    public ServiceOptionEncoder(SessionFactory sessionFactory,
            ServiceOptionController controller) {
        super(sessionFactory, controller);
    }
//    public ServiceOptionEncoder(SessionFactory sessionFactory,
//            ServiceOptionController controller,
//            PrimaryKeyTypeService primaryKeyTypeService) {
//        super(sessionFactory, controller, primaryKeyTypeService);
//    }
    public String toLabel(ServiceOption serviceOption) {
        return serviceOption.getName();
    }

}
